package com.cwj.we.module.bizhi;

import com.cwj.we.base.BaseObserver;
import com.cwj.we.base.BasePresenter;
import com.cwj.we.bean.VerticalBiZhi;

/**
 * created by cwj on 2024-4-24
 * Description:
 */
public class BiZhiPrensenter extends BasePresenter<BiZhiView> {
    public BiZhiPrensenter(BiZhiView baseView) {
        super(baseView);
    }

    /**
     * 获取手机壁纸类别
     */
    public void getVertical(Integer type) {
        addDisposable(apiServer.getVertical(), new BaseObserver<VerticalBiZhi>() {
            @Override
            public void onSuccess(VerticalBiZhi bean) {
                baseView.getVerticalSuccess(bean, type);
            }

            @Override
            public void onError(String msg) {
                baseView.onError(msg);
            }
        });
    }
}
